package com.ycfmedical.bed.net;


import com.ycfmedical.bed.ApiConfigs;

import cn.droidlover.xdroidmvp.net.XApi;

/**
 * Created by Egoist on 2016/12/31.
 */
public class Api {

    private static AvatarService avatarService;

    public static AvatarService getAvatarService() {
        if (avatarService == null) {
            synchronized (Api.class) {
                if (avatarService == null) {
                    avatarService = XApi.getInstance().getRetrofit(ApiConfigs.API_BASE_URL,true).create(AvatarService.class);
                }
            }
        }
        return avatarService;
    }

}
